﻿using SDF.Core;
using SDF.Plugin.Misc.SAPAdapter.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SDF.Plugin.Misc.SAPAdapter.Services
{
    public interface ISAPInstanceService
    {
        IEnumerable<SAPInstance> GetAllInstance(bool showDel = false);

        IPagedList<SAPInstance> QuerySAPInstance(string sapInstance, int pageIndex = 0, int pageSize = int.MaxValue, bool showDel = false);

        void InsertSAPInstance(SAPInstance entity);

        void UpdateSAPInstance(SAPInstance entity);

        void DeleteSAPInstance(SAPInstance entity);

        SAPInstance GetSAPInstanceByCodeName(string codeName);

        SAPInstance GetSAPInstanceById(int id);
    }
}